import service from '@/utils/request'

// 登录
export const login = ({ mobile, password }) => service.post('/sys/login', { mobile, password })

// 获取用户信息
export const getUserProfile = _ => service.post('/sys/profile')

// 获取用户详细信息
// export const getUserDetail = id => service.get('/sys/user/', { params: { id }})
export function getUserDetail(id) {
  return service({
    url: `/sys/user/${id}`
  })
}

export function logout() {
}
